package controller

import (
	"github.com/labstack/echo"
	"github.com/sirupsen/logrus"
	"src/config"
	"src/util/context"
	"src/util/log"
)

var routeLogger = log.GetLogger()

func writerouteLoggerLoggerLog(funcName, errMsg string, err error) {
	routeLogger.WithFields(logrus.Fields{
		"package":  config.LogMessage,
		"file":     "Route.go",
		"function": funcName,
		"err":      err,
	}).Warn(errMsg)
}

func Getroutes(c echo.Context) error {
	return context.RetData(c, *config.Frontendroutes)
}
